package com.wing.cabinet.controller.app;

import com.wing.common.utils.JsonResult;
import com.wing.order.model.response.EnterpriseVO;
import com.wing.order.service.DynamicService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Validated
@Api(value = "App-企业id", tags = "企业id")
@RestController("enterpriseAppController")
@RequestMapping("enterprise/app/enterprise")
public class EnterpriseController {

    @Autowired
    private DynamicService dynamicService;

    @ApiOperation(value = "获取企业id", notes = "搜索")
    @GetMapping("/getEnterpriseId")
    public JsonResult getEnterpriseId(){
        EnterpriseVO enterprise=dynamicService.getEnterprise();
        return JsonResult.success(JsonResult.Code.SUCCESS.getDesc(),enterprise);
    }
}
